// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2023-12-01 14:49:39
// 生成路径: internal/app/plugins/sms/service/plugin_sms_config.go
// 生成人：gfast
// desc:短信配置
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/plugins/sms/model"
)

type IPluginSmsConfig interface {
	List(ctx context.Context, req *model.PluginSmsConfigSearchReq) (res *model.PluginSmsConfigSearchRes, err error)
	GetById(ctx context.Context, Id uint) (res *model.PluginSmsConfigInfoRes, err error)
	Add(ctx context.Context, req *model.PluginSmsConfigAddReq) (err error)
	Edit(ctx context.Context, req *model.PluginSmsConfigEditReq) (err error)
	Delete(ctx context.Context, Id []uint) (err error)
	ChangeStatus(ctx context.Context,id uint,status int) (err error)
}

var localPluginSmsConfig IPluginSmsConfig

func PluginSmsConfig() IPluginSmsConfig {
	if localPluginSmsConfig == nil {
		panic("implement not found for interface IPluginSmsConfig, forgot register?")
	}
	return localPluginSmsConfig
}

func RegisterPluginSmsConfig(i IPluginSmsConfig) {
	localPluginSmsConfig = i
}
